home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ MSN Messenger 6.xpl < prev    next >
Text File  |  2001-02-13  |  2KB  |  70 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Instant Messaging\MSN Messenger"
  5. "NAME"="Downloading of advertising"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.4"
  8. "TEXT 1"="Enable downloading of advertising"
  9. "DESCRIPTION 1"="By default, MSN downloads adverts every 6 minutes while you are logged in. If you want, you can disable this, by clearing the tick in the box. You can enable it again by putting a tick in the box."
  10. "DESCRIPTION 2"="NOTE: After re-enabling, you will need to run Messenger to let it tidy up its settings."
  11. "DESCRIPTION 3"="MSN Messenger may be obtained at http://messenger.msn.com/"
  12. "AUTHOR"="Neil R. Turner (totalxs@hotmail.com) for Xteq Systems"
  13. "CONTACTURL"="http://www.neilrt.cwc.net/"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="Thanks to Chris Pirillo [chris@lockergnome.com] and "Lockergnomie" Chris Johnson for suggesting this tweak in the awesome Lockergome.com Windows newsletter!"
  16.  
  17. sP="HKLM\Software\Microsoft\MessengerService\InstallationDirectory"
  18.  
  19. Sub Plugin_Initialize
  20.  i=RegValueExists(sP)
  21.  if i=false then
  22.   Call Disable()
  23.  else
  24.   t=RegReadValue(sP)
  25.   Call TxtOpen(t & "\links.txt")
  26.   i=TxtGetLineCount
  27.   if i>2 then
  28.    s=TxtGetLine(2)
  29.    if s="<msn-data>" then
  30.     Call SetUIElement(1,true)
  31.    end if
  32.   end if
  33.  end if
  34. End Sub
  35.  
  36. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  37.  t=RegReadValue(sP)
  38.  s=GetUIElement(1)
  39.  if s=false then
  40.   ' Before we make any changes, backup the file!
  41.   Call FileBackup(t & "\links.txt")
  42.  
  43.   ' OK, let's go!
  44.   i=TxtGetLineCount
  45.   if i>1 then
  46.    For j=1 to i
  47.     j=j+1
  48.     if j<=i then
  49.      Call TxtDeleteLine(j)
  50.     end if
  51.    Next
  52.   end if
  53.   Call TxtSetLine(1,"")
  54.   Call TxtSave()
  55.  
  56.   Call FileSetAttribute(t & "\links.txt","R+")
  57.  else
  58.   Call FileSetAttribute(t & "\links.txt","R-")
  59.   Call MsgInformation("Downloading of adverts has been enabled. Please sign in to MSN Messenger now to clear up settings.")
  60.  end if
  61. End Sub
  62.  
  63.  
  64. Sub Plugin_Terminate
  65.   Call TxtClose()
  66. End Sub
  67.  
  68.  
  69.  
  70.